import xadmin
from xadmin import views
# from luffyapi.apps.user.models import User
from . import models


class GlobalSettings(object):
    """xadmin的全局配置"""
    site_title = '路飞学城'  # 设置站点标题
    site_footer = '路飞学城有限公司'  # 设置站点的页脚
    menu_style = 'accordion'  # 设置菜单折叠


xadmin.site.register(views.CommAdminView, GlobalSettings)
# 默认xadmin已经把权限6表注册了，所以这里不需要再注册
# xadmin.site.register(User)
xadmin.site.register(models.Banner)  # 注册Banner表
